<?php

class Favorite_Controller extends Base_Controller {
	public $restful=true;

	public function get_index(){
		$archives = array();
		foreach (Auth::user()->favorite as $archive) {
			$archives[] = $archive->archive;
		}
		return View::make("home.favorite")->with("archives",$archives);
	}
}